<!--{include file="oui/public/header.html"}-->
<!--{include file="oui/public/navibar.html"}-->
<!--{include file="oui/public/sidebar.html"}-->
<div class="header">
    <div class="stats"><p class="stat"><!--旁注--></p></div>
    <h1 class="page-title"><!--{$data.meta.title}--></h1>
</div>
<!--优雅的分隔线-1-->
<ul class="breadcrumb">
    <li><a>控制面板</a><span class="divider">/</span></li>
    <li><a href=<!--{Route->MakeHyperLink Controller=':product::listview'}-->>产品管理</a><span class="divider">/</span></li>
    <li class="active"><!--{$data.meta.title}--></li>
</ul>
<!--优雅的分隔线-->
<div class="container-fluid">
    <div class="row-fluid">
<!--优雅的分隔线-->
        <div class="well">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#main" data-toggle="tab">基本信息</a></li>
                <li class=""><a href="#option1" data-toggle="tab">选项</a></li>
            </ul>
            <form method="post" class="form" action=<!--{$data.meta.action}-->>
            <div id="myTabContent" class="tab-content">
                <div id="main" class="tab-pane active in">
                    <label>名称</label>
                    <input type="text" class="input-xlarge-1" id="name" name="name" autofocus="true" value=<!--{$data.base.name}-->>
                    <!--优雅的分隔线-->
                    <label>介绍</label>
                    <textarea class="input-xlarge hidden" id="description" name="description" rows="10" xheditor="true" height="360" upImgUrl=<!--{Route->MakeHyperLink Controller=':common_xheditor::upload'}-->><!--{$data.base.description}--></textarea>
                </div>
                <div id="option1" class="tab-pane fade">
                    <label>图片<span id="cover1-error-paniel" class="label label-important hidden"></span></label>
                    <input type="text" class="input-xlarge" id="picture" name="picture" x-upload="true" x-data="cover1-error-paniel" x-upload-ui=<!--{Route->MakeHyperLink Controller=':common_upload'}--> value=<!--{$data.base.picture}-->>
                    <!--优雅的分隔线-->
                    <label>类别</label>
                    <input type="hidden" id="category-value" name="category-value" value=<!--{$data.base.category}-->>
                    <select class="select-xlarge-1" id="category" name="category">
                        <!--{foreach from=$data.category item=row}-->
                        <option value=<!--{$row.id}-->><!--{$row.name}--></option>
                        <!--{/foreach}-->
                    </select>
                    <!--优雅的分隔线-->
                    <label>标签</label>
                    <input class="input-xlarge-1" type="text" id="label" name="label" value=<!--{$data.base.label}-->>
                    <!--优雅的分隔线-->
                    <label>摘要</label>
                    <textarea class="textarea-xlarge-3" id="summary" name="summary"><!--{$data.base.summary}--></textarea>
                </div>
                <div id="default-data" class="hidden">
                    <input type="hidden" id="id" name="id" value=<!--{$data.base.id}-->>
                </div>
                <div class="btn-toolbar">
                    <button type="submit" class="btn btn-primary"><strong>提交</strong></button>
                </div>
            </div>
            </form>
        </div>
        <!--优雅的分隔线-->
        <script src=<!--{$smarty.const.APP_PATH}-->/view/oui/scripts/library/trigger.upload.js></script>
        <!--优雅的分隔线-->
        <script src=<!--{$smarty.const.BUILD_PATH}-->/public/JEAR/xheditor/xheditor-1.1.14-zh-cn.min.js></script>
        <script src=<!--{$smarty.const.BUILD_PATH}-->/public/JEAR/xheditor/xheditor.initialization.js></script>
        <!--优雅的分隔线-->
        <script src=<!--{$smarty.const.APP_PATH}-->/view/oui/scripts/product.form.js></script>
<!--{include file="oui/public/footer.html"}-->